﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace OpelWelcomeScreenWeb.Models
{
    public class WorkOrder
    {
        private DateTime checkInTime;
        private string customerName;
        private string advisorName;
        private string advisorPicRef;
        private string licNo;
        private string status;

        public DateTime CheckInTime
        {
            get { return checkInTime; }
            set { checkInTime = value; }
        }

        public String Time
        {
            get { return string.Format("{0:HH:mm}", this.checkInTime); }
        }

        public string CustomerName
        {
            get { return customerName; }
            set { customerName = value; }
        }

        public string AdvisorName
        {
            get { return advisorName; }
            set { advisorName = value; }
        }

        public string AdvisorPicRef
        {
            get { return advisorPicRef; }
            set { advisorPicRef = value; }
        }

        public string LicenseNo
        {
            get { return licNo; }
            set { licNo = value; }
        }

        public string Status
        {
            get { return status; }
            set { status = value; }
        }

        public override string ToString()
        {
            return string.Format("[{0}, {1}, {2}, {3}]", advisorName, customerName, checkInTime, status);
        }
    }
}
